package com.cssl.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cssl.pojo.SysDept;
import com.cssl.pojo.SysStaff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author YY
* @description 针对表【sys_dept(部门表)】的数据库操作Mapper
* @createDate 2023-05-09 11:54:15
* @Entity com.model.pojo.SysDept
*/
public interface SysDeptMapper extends BaseMapper<SysDept> {

    //查询部门的id每个大部门
    public  List<SysDept> dgcyss(@Param("parent_id") int parent_id);

    //查询每个部门下的各个小部门传部门
    public  List<SysDept> ll(@Param("id") Object id);

    IPage<SysDept> select(IPage<SysDept> page);

    public  List<SysDept> dgcy();

    public int selectDept(List<Integer> dept_id);

}




